#pragma once

#include "mccommonapi.h"

namespace MCCommon
{

class MCAPI AccessCount 
{
public:    
    /**
     * Constructor.
     * 
     */
    AccessCount();

    /**
     * Destructor.
     * 
     */
    ~AccessCount();

    /**
     * Decrease the number of access count.
     * 
     */
    void Decrease();

    /**
     * Increase the number of access count.
     * 
     */
    void Increase();

    /**
     * Get the count of access.
     * 
     */
    int GetCount();

private:

    // The pointer of access count.
    int *fpAccessCount;
};

} // end of namespace MCXML_NAMESPACE.